package com.atcentaline.service;

import com.atcentaline.aop.LogAnnotation;
import org.springframework.stereotype.Service;

/**
 * @author: wbzhangzp
 * @date: 2021-05-13 20:40
 */
@Service
public class AopUserService {

    public void funA() {
        System.out.println("我是业务方法A。。。");
        System.out.println("funA方法执行完毕。。。");
    }

    @LogAnnotation(value = "funB",description = "这是B方法",flag = false)
    public void funB(int a,String b) {
        System.out.println("我是业务方法B。。。");
        System.out.println("funB a = " + a);
        System.out.println("funB b = " + b);
    }

    public String funC() {
//        int a = 0;
//        int b = 10;
//        int c = b / a;
        System.out.println("》》》》我是业务方法C。。。");
        return "我是springCC";
    }

}
